package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.util.ArrayList;
import entities.*;

public class GetQuestionsPerSubjectPack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private Subject sbjct;
	private ArrayList<Question> lstQst = null;

	/**
	 * constructor
	 * 
	 * @param sbjct
	 */
	public GetQuestionsPerSubjectPack(Subject sbjct) {
		this.op = OpType.GetQuestionsPerSubject;
		this.sbjct = sbjct;
	}

	/**
	 * 
	 * @param qstn
	 *            the question
	 */
	public void AddQuestions(ArrayList<Question> qstn) {
		lstQst = new ArrayList<Question>();
		lstQst.addAll(0, qstn);
	}

	/**
	 * 
	 * @return the list of questions
	 */
	public ArrayList<Question> getLstQst() {
		return lstQst;
	}

	/**
	 * 
	 * @return the subject
	 */
	public Subject getSbjct() {
		return sbjct;
	}
}
